<?php
	session_start();
    
    ob_start(); // Xoá ký tự đệm đầu trang, dùng để chạy Header("Location: ...");
    
    require 'define.php';
	
    function __autoload($class_name)
	{
		include_once('../classes/'.strtolower($class_name).'.php');
	}
    
    //include_once "../functions.php";
    if(!isset($_SESSION['TenDangNhap']))
    {
        //header("location: dangnhap.php");
    }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta name="author" content="Mr Nhan" />
    <link rel="stylesheet" type="text/css" href="css/basic.css" />
    
    <!-- jquery -->
    <script type="text/javascript"  src="../scripts/jquery-1.7.1.min.js"></script>
    
    <!-- jquery: backtotop -->
    <script type="text/javascript" src="../scripts/jquery.backtotop.js"></script>
    
    <!-- jquery: tab -->
    <script type="text/javascript" src="../scripts/jquery.tab.js"></script>
    
    <!-- plugin imageZoom 2.0 -->
    <script type="text/javascript" src="../scripts/jquery.imageZoom2.0.js"></script>
    <script type="text/javascript" src="../scripts/jquery.imagezoom.js"></script>
    
    <!-- plugin grid view -->
    <link rel="stylesheet" type="text/css" href="../scripts/flexigrid/css/flexigrid.css" />
    <script type="text/javascript" src="../scripts/flexigrid/js/flexigrid.js"></script>
    
    <!-- plugin powertip -->
    <script type="text/javascript" src="../scripts/jquery.powertip1.0.js"></script>
    
    <!-- plugin popup -->
    <link rel="stylesheet" href="../scripts/zebra_dialog/css/zebra_dialog.css" type="text/css" />
    <script type="text/javascript" src="../scripts/zebra_dialog/js/zebra_dialog.js"></script>
    
    <!-- plugin sexy form -->
    <link rel="stylesheet" href="../scripts/uniform/css/uniform.default.css" media="screen" />
    <script src="../scripts/uniform/jquery.uniform.js"></script>
    
    <!-- functions design by author -->
    <script type="text/javascript" src="../scripts/funcs.js"></script>
    
    <!-- ckediter -->
    <script type="text/javascript" src="../scripts/ckeditor/ckeditor.js"></script>
	<script type="text/javascript" src="../scripts/ckfinder/ckfinder.js"></script>
    
    <title>Công ty Cổ Phần Đầu Tư Thương Mại Gia Phúc</title>
</head>

<body>
    <div id="page">
        <div id="header">
            <?php include_once "header.php"; ?>
        </div>
        
        <div id="middle">
            <div id="slidebar">
                <?php include_once "slidebar.php"; ?>
            </div>
            
            <div id="main">                  
                <div id="content">
                    <div style="color: #FFF; height: 30px; line-height: 30px; padding-left: 10px; background: url(images/navigation_main.png) no-repeat;">
                        Tiêu đề
                        <!--<img src="images/add1.png" alt="" style="float: right; line-height: 30px; margin: 5px 10px;" />-->
                    </div>
                    <div style="border: 1px solid #DBDDDC;">
                        <div style="padding-bottom: 10px;">
                            <?php
                                $action = isset($_GET['action']) ? $_GET['action'] : "";
                                include_once("action.php");
                            ?>
                        </div>
                    </div>
                </div>
            </div>            
        </div>
        
        <div id="footer">
            <?php include_once "footer.php"; ?>
        </div>
    </div>
    <div id="bttop">Về đầu trang</div>
</body>
</html>